lib/sysroot: Fix retrieving non-booted pending deployment
authorJonathan Lebon <jlebon@redhat.com>
Wed, 28 Feb 2018 17:30:18 +0000 (17:30 +0000)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 28 Feb 2018 18:09:13 +0000 (18:09 +0000)
commit530043fcf6444f5751caa2c478d9411ab78e1698
tree16729eb726ac01283286cc30fdb012a5b7799840
parent6db6268dfd76dfb36bd7bd756fe78ba8a1abcd5b
lib/sysroot: Fix retrieving non-booted pending deployment

If we're booted into a deployment, then any queries for the pending
merge deployment of a non-booted OS will fail due all of them being
considered rollback.

Fix this by filtering by `osname` *before* determining if we've crossed
the booted deployment yet.

Closes: #1472
Approved by: cgwalters
src/libostree/ostree-sysroot.c